package loop;

public class while4 {
    public static void main(String[] args) {
        double peakhight = 8848860;
        double paperthickness = 0.1;
        int count = 0;
        while (paperthickness < peakhight) {
            paperthickness = paperthickness * 2;
            count++;
        }
        System.out.println("需要折叠多少次：" + count);
        System.out.println("最终纸张厚度是：" + paperthickness);
    }
}
